I noticed that when I print a module with a multi valued enumerated attribute in the display (PDF or Printer) that the values print in the order of the related number even if this is not the order in which they are in the pick list or displayed in the column. |
Re: Printing Multi-Valued Enumerated Attributes
|
Re: Printing Multi-Valued Enumerated Attributes llandale - Fri Sep 09 14:41:25 EDT 2011
Thanks for the response, but my problem is not with how the enum is displayed but how it prints. The display is in the correct order. If I export to Word or Excel it is in the correct order. The problem is with printing (PDF or straight to the printer)or exporting to HTML. What I see is NOT what I get. The printout is in the old order. I don't understand why the enum gets rearranged using the related number when printed anyway. Any help is appreciated. Thanks Lee |
Re: Printing Multi-Valued Enumerated Attributes leefarmer - Mon Sep 12 08:28:42 EDT 2011 |
Re: Printing Multi-Valued Enumerated Attributes leefarmer - Mon Sep 12 08:28:42 EDT 2011 Playing with multi-enumerates including one whose Related number is in reverse order, I see that no matter which order I select the values, they are always displayed in Related number sequence. When the related number is the same (typically zero) then they are displayed in the order in which they are currently listed.
So it appears, rightfully or wrongfully, that DOORS thinks the values 'should' display in Related number sequence. I see it prints the way I see it. Using DXL, it seems to retrieve the values as they are seen. If I rearrange the Related Numbers such that the object 'should' change the values (example above should then display 2..3), I see they display the old order (e.g. 3..2) until the obj-value changes. I see it prints the way its displayed and is retrieved the same way. However, I see that exporting to Excel they appear in the order in which they 'should' appear; so it now displayes 3..2 but exports 2..3. To reconcile our different experiences, I wonder if what you think you are 'seeing' is what you are really seeing. Next to the displayed multi-enum column, insert a new column that has the exact attribute in question, to make sure the column you see is the one you think it is. Is it possible this mutli-enumerated is an Attr-DXL? If so more testing is needed. Try my code above to reset all the values and see if it 'fixes' anything. If this doesn't reconcile what you see with what I see, then I'm stuck and hopefully someone with more experience can straighten us out.
|
Re: Printing Multi-Valued Enumerated Attributes llandale - Mon Sep 12 12:11:44 EDT 2011
So it appears, rightfully or wrongfully, that DOORS thinks the values 'should' display in Related number sequence. I see it prints the way I see it. Using DXL, it seems to retrieve the values as they are seen. If I rearrange the Related Numbers such that the object 'should' change the values (example above should then display 2..3), I see they display the old order (e.g. 3..2) until the obj-value changes. I see it prints the way its displayed and is retrieved the same way. However, I see that exporting to Excel they appear in the order in which they 'should' appear; so it now displayes 3..2 but exports 2..3. To reconcile our different experiences, I wonder if what you think you are 'seeing' is what you are really seeing. Next to the displayed multi-enum column, insert a new column that has the exact attribute in question, to make sure the column you see is the one you think it is. Is it possible this mutli-enumerated is an Attr-DXL? If so more testing is needed. Try my code above to reset all the values and see if it 'fixes' anything. If this doesn't reconcile what you see with what I see, then I'm stuck and hopefully someone with more experience can straighten us out.
Thanks for the code. I finally got a chance to run this and it fixed my printing problem. Lee |